<div class="box">
    <?php if(!$user = $this->Session->read('user')){ ?>
    <div class="box">
        <div class="box-heading">JOIN</div>
        <div class="box-content">
            <?php echo $this->Form->create(null,
                array(
                    'url' => $this->Html->url(array('controller' => 'User', 'action' => 'login', '?' => array('redirect' => $this->here))),
                    'type' => 'post', 'id' => 'frm_home_login', 'class' => 'login',
                    'autocomplete' => 'off'
                ));
            ?>
                <div class="form-t"><p>Username:</p>
                    <?php //echo $this->Form->input('User.username', array('label' => false, 'class' => 'b home_login_input', 'id' => 'home_login_username', 'value' => '', 'autocomplete' => 'off')); ?>
                    <input name="data[User][username]" class="b home_login_input form-error" id="home_login_username" value="" autocomplete="off" maxlength="255" type="text">
                </div>
                <div class="form-t"><p>Password:</p>
                    <?php //echo $this->Form->input('User.password', array('label' => false, 'type' => 'password', 'class' => 'b home_login_input',  'id' => 'home_login_password', 'value' => '', 'autocomplete' => 'off')); ?>
                    <input name="data[User][password]" class="b home_login_input form-error" id="home_login_password" value="" autocomplete="off" type="password">
                </div>

                <p class="rg"><input type="checkbox">Remember</p>
                <p class="rg">
                    <?php echo $this->Html->link(
                        'Forgot your password?', array('controller' => 'User', 'action' => 'forgot_pass')
                    ); ?>
                </p>
                <p class="rg"><input type="submit" value="Login" class="btn log"></p>
                <p class="rg">
                    <?php echo $this->Html->link(
                        'Create an account', array('controller' => 'User', 'action' => 'register'),
                        array('class' => 'btn reg')
                    ); ?>
                </p>
            </form>
        </div>
    </div>
    <?php }else{ ?>
        <div class="box">
            <div class="box-logout">
                <div class="name">Hi, <?php echo $user['User']['fullname']; ?></div>
                <div class="log">
                    <?php echo $this->Html->link(
                        'Account', array('controller' => 'User', 'action' => 'userinfo')
                    ); ?>
                </div>
                <div class="log">
                    <?php echo $this->Html->link(
                        'Log out', array('controller' => 'User', 'action' => 'logout')
                    ); ?>
                </div>
            </div>
        </div>
    <?php } ?>
</div>

<iframe scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:255px; height:300px;" src="http://www.facebook.com/plugins/likebox.php?href=http://www.facebook.com/3darcshop&amp;width=255&amp;colorscheme=light&amp;connections=13&amp;stream=false&amp;header=true&amp;height=300"></iframe>


<div id="banner0" class="banner">
    <div style="display: block;">
        <a href="http://3darcshop.com/contact.html">
            <img src="images/QUANG CAO-255x200.jpg" alt="Banner1" title="Banner1">
        </a>
    </div>
</div>

<div id="banner1" class="banner">
    <div style="display: block;">
        <a href="http://3darcshop.com/contact.html">
            <img src="images/QUANG CAO-255x200.jpg" alt="Banner2" title="Banner2">
        </a>
    </div>
</div>